<style>
    #content #valueSearch {
        padding: 10px;
    }
    #content #keySearch {
        width: 150px;
        padding: 9px;
    }
</style>
<div class="onecolumn">
    <div class="header">
        <span style="color: red; text-align: center; font-weight: bold;">Tìm kiếm tài liệu</span>
    </div>
    <br class="clear"/>
    <div id="content" style="margin-bottom: 20px;">
        <?php
        $form = $this->form;
        $form->setAttribute('action', $this->url('search-document/default', array('action' => 'index',)));
        $form->prepare();
        echo $this->form()->openTag($form);
        ?>
        <p style="float:left; margin-right: 10px;">
            <?php
            echo $this->formRow($form->get('keySearch'));
            ?>
        </p>
        <p style="float: left; margin-right: 10px;">
            <?php
            echo $this->formInput($form->get('valueSearch'));
            ?>
        </p>
        <p>
            <?php
            echo $this->formInput($form->get('search'));
            ?>

        </p>   
        <div class="viewMessae" style="text-align: center">
            <?php
            if (isset($myMessage)) {
                foreach ($myMessage as $key => $message) {
                    if ($message == "inputError")
                        echo '<span style="color:red;font-weight:bold;float:right;margin-right:550px;margin-top:10px;">Bạn chưa chọn kiểu tìm kiếm</span><br/>';
                    if ($message == "notFoundResult")
                        echo '<span style="color:red;font-weight:bold;float:right;margin-right:550px;margin-top:10px;">Không tìm thấy kết quả nào</span><br/>';
                }
            }
            ?>
        </div>
        <?php
        echo $this->form()->closeTag($form);
        ?>
    </div>
</div>